package io.api.modules.project.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 项目线路关系表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-12
 */
@Data
@ApiModel(value = "项目线路关系表")
public class LineDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "线路id")
	private Long id;

	@ApiModelProperty(value = "线路名称")
	@NotBlank(message = "线路名称不能为空")
	private String name;

	@ApiModelProperty(value = "项目Id")
	@NotNull(message = "项目ID不能为空")
	private Long projectId;

	@ApiModelProperty(value = "创建日期")
	private Date createDate;

	@ApiModelProperty(value = "施工日期")
	@NotNull(message = "施工日期不能为空")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
	private Date startDate;

	@ApiModelProperty(value = "备注")
	private String notes;

	private List<AnchorDTO> anchors;


}